#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
	int a;
	int b;
	int c;
	scanf("%d ", &c);
	for (b = 1; b <= c; b++)
	{
		for (a = 1; a <= b; a++)
		{
			printf("%d*%d=%d  ", a, b, a * b);
		}
		printf("\n");
	}
	return 0;
}